package test.com.flexoop.utilities.dateutils {

	import com.flexoop.utilities.dateutils.DateUtils;
	
	import org.flexunit.Assert;

	public class WeeksInMonthTest {

		public function WeeksInMonthTest() {
		}
		
		[Test]
		public function testWeeksInMonth():void {
			Assert.assertEquals( 5, DateUtils.weeksInMonth( new Date( 2009, DateUtils.monthAsNumber( DateUtils.OCTOBER ), 15 ) ) );
			Assert.assertEquals( 6, DateUtils.weeksInMonth( new Date( 2010, DateUtils.monthAsNumber( DateUtils.JANUARY ), 5 ) ) );
			Assert.assertEquals( 4, DateUtils.weeksInMonth( new Date( 2015, DateUtils.monthAsNumber( DateUtils.FEBRUARY ), 21 ) ) );
		}

	}
}